﻿<%@ Page Language="C#" MasterPageFile="~/FilmTitleTranslator.Master" AutoEventWireup="true"
    CodeBehind="FilmFinder.aspx.cs" Inherits="FilmAlert.FilmTitleTranslatorWeb.FilmFinder"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="TdLabel">
                    <table border="0" cellpadding="0" cellspacing="0" align="left" __designer:mapid="4">
                        <tr __designer:mapid="5">
                            <td align="right" __designer:mapid="6" width="30%" class="TdLabel">
                                <asp:Label ID="filmTitleLbl" runat="server" Text="Film title:"></asp:Label>
                            </td>
                            <td class="TdLabel" align="left" __designer:mapid="8" width="70%">
                                <asp:TextBox ID="filmSearchTbx" runat="server" Width="200px" autocomplete="off" Wrap="False"
                                    meta:resourcekey="FilmSearchTbx" Text="(eg: Harry Potter)" CssClass="SearchTbx" />
                                <asp:Button ID="filmSearchButton" runat="server" OnClick="filmSearchButton_Click" 
                                    Text="Button" CssClass="Hidden" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td width="100%">
                                <asp:Label ID="noResultsLabel" runat="server" CssClass="LabelRegular" Font-Bold="True"
                                    Text="Sorry but this search returned no result." Visible="False"></asp:Label>
                                &nbsp;<table
                                        cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td width="30%" valign="top">
                                                <asp:TreeView ID="resultsTreeView" runat="server" OnSelectedNodeChanged="resultsTreeView_SelectedNodeChanged"
                                                    CssClass="CustomerTable" Visible="False" Width="300px">
                                                </asp:TreeView>
                                            </td>
                                            <td valign="top">
                                                <asp:Panel ID="resultPanel" runat="server" Visible="False">
                                                    <table cellpadding="0" cellspacing="0" width="100%" class="CustomerTable">
                                                        <tr>
                                                            <td width="100%">
                                                                <asp:Label ID="filmTitleTextLabel" runat="server" Style="font-weight: 700" 
                                                                    Text="Title"></asp:Label>
                                                                <asp:Label ID="filmDirectorTextLabel" runat="server" Style="font-weight: 700" 
                                                                    Text="Director"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="100%">
                                                                <table cellpadding="0" cellspacing="0" width="100%">
                                                                    <tr>
                                                                        <td valign="top" width="50%">
                                                                            &nbsp;</td>
                                                                        <td valign="top" width="50%">
                                                                            &nbsp;</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top" width="50%">
                                                                            <asp:Label ID="filmActorsLabel" runat="server" Style="font-weight: 700" 
                                                                                Text="With:"></asp:Label>
                                                                            <asp:GridView ID="actorsGridView" runat="server" AutoGenerateColumns="False" 
                                                                                ShowHeader="False" Width="90%" CssClass="PublicTable">
                                                                                <RowStyle CssClass="PublicTableBody" />
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="Name">
                                                                                        <ItemStyle Width="50%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Character">
                                                                                        <ItemStyle Width="50%" />
                                                                                    </asp:BoundField>
                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </td>
                                                                        <td valign="top" width="50%">
                                                                            <asp:Label ID="filmTranslationsLabel" runat="server" Style="font-weight: 700" 
                                                                                Text="Translations:"></asp:Label>
                                                                            <asp:GridView ID="filmAkasGrid" runat="server" AutoGenerateColumns="False" 
                                                                                CellPadding="0" CssClass="PublicTable" meta:resourcekey="filmGrid" 
                                                                                ShowHeader="False" Width="90%">
                                                                                <Columns>
                                                                                    <asp:TemplateField HeaderText="IsoCode" SortExpression="IsoCode">
                                                                                        <ItemTemplate>
                                                                                            <asp:Image ID="FlagImg" runat="server" 
                                                                                                ImageUrl='<%# "Images/Flags/"+Eval("LanguageIsoCode")+".gif" %>' />
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle HorizontalAlign="center" Width="10%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="Title" HeaderText="Title" 
                                                                                        meta:resourcekey="FilmTitle" SortExpression="FilmTitle">
                                                                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="80%" />
                                                                                    </asp:BoundField>
                                                                                </Columns>
                                                                                <RowStyle CssClass="PublicTableBody" Wrap="False" />
                                                                                <HeaderStyle CssClass="PublicTableHeader" />
                                                                            </asp:GridView>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        </table>
                            </td>
                        </tr>
                    </table>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
